{ 
  "title": "🏴‍☠️ ipatch, broken wrist 🤕 k6 toggle capslock double tap right shift",
  "TODO": "from key must be a JSON object NOT arrary",
  "maintainer": [
    "github.com/ipatch"
  ],
  "rules": [
    {
      "description": "🏴‍☠️ ipatch, broken wrist 🤕 k6 toggle capslock double tap right shift",
      "manipulators": [
        {
          "type": "basic",
          "from": 
          {
            "key_code": "right_shift",
            "modifiers": {
              "optional": ["any"]
            }
          },
          "to": [
            {
              "key_code": "caps_lock"
            }
          ],
          "conditions": [
            {
              "type": "device_if",
              "identifiers": [
                {
                  "product_id": 591,
                  "vendor_id": 1452
                }
              ]
            },
            {
              "type": "variable_if",
              "name": "right_shift pressed",
              "value": 1
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_shift",
            "modifiers": {
              "optional": ["any"]
            }
          },
          "to": [
            {
              "set_variable": {
                "name": "right_shift pressed",
                "value": 1
              }
            },
            {
              "key_code": "right_shift"
            }
          ],
          "to_delayed_action": {
            "to_if_invoked": [
              {
                "set_variable": {
                  "name": "right_shift pressed",
                  "value": 0
                }
              }
            ],
            "to_if_canceled": [
              {
                "set_variable": {
                  "name": "right_shift pressed",
                  "value": 0
                }
              }
            ]
          }
        }
      ]
    }
  ]
}
